import request from '@/utils/request'
import ConstTable from './ConstTable'


// 数据加载
export function GetList(data)
{
    return request({
        url: `${ConstTable.BaseUrl}/BaseData/UsersiteRel/`,
        method: "GET",
        data
    });
}

// 新建
export function Create(data)
{
    return request({
        url: `${ConstTable.BaseUrl}/BaseData/UsersiteRel`,
        method: "POST",
        data
    });
}

// 修改
export function Update(data)
{
    return request({
        url: `${ConstTable.BaseUrl}/BaseData/UsersiteRel/${data.id}`,
        method: "PUT",
        data
    });
}

// 删除
export function Delete(id)
{
    return request({
        url: `${ConstTable.BaseUrl}/BaseData/UsersiteRel/${id}`,
        method: "DELETE"
    });
}

// 编辑加载
export function GetInfo(id)
{
    return request({
        url: `${ConstTable.BaseUrl}/BaseData/UsersiteRel/${id}`,
        method: "GET"
    });
}
